home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / BUS / BibTeX 1.06 FAT.sit / BibTeX ƒ / Source code / bibtex.p < prev    next >
Text File  |  1996-02-18  |  8KB  |  641 lines

  1. /* Protoypes grabbed from file
  2. ** "bibext.c"
  3. ** 1988 Aug 15 (Mon) 17:26:26
  4. */
  5.  
  6. char *
  7. getenv( char *p);
  8.  
  9. /* vince
  10. int
  11. access( char *p, int i);
  12. */
  13.  
  14. BIBFILE *        
  15. openf(char *name,         
  16.     char *mode);        
  17.  
  18. int         
  19. eoln(BIBFILE *f);        
  20.  
  21. void         
  22. lineread(BIBFILE *f,         
  23.     int size);        
  24.  
  25. void         
  26. setpaths(void);        
  27.  
  28. int         
  29. testaccess(int wam,         
  30.     int filepath);        
  31.  
  32.         
  33. packrealnameoffile(char **cpp);        
  34.  
  35. int         
  36. getcmdline(char *buf,
  37.     int n);    /* WARNING: argument was not declared! */        
  38.  
  39.         
  40. main(
  41.     int argc,     /* WARNING: argument was not declared! */        
  42.     char *argv[]);        
  43.  
  44. /* Protoypes grabbed from file
  45. ** "BibTeX.c"
  46. ** 1988 Aug 21 (Sun) 13:24:59
  47. */
  48.  
  49.         
  50. void printanewline(void);        
  51.  
  52.         
  53. void markwarning(void);        
  54.  
  55.         
  56. void markerror(void);        
  57.  
  58.         
  59. void markfatal(void);        
  60.  
  61.         
  62. void printoverflow(void);        
  63.  
  64.         
  65. void printconfusion(void);        
  66.  
  67.         
  68. void bufferoverflow(void);        
  69.  
  70. boolean         
  71. zinputln(alphafile f);        /* 15 */
  72.  
  73.         
  74. void zoutpoolstr(alphafile f,         
  75.     strnumber s);        
  76.  
  77.         
  78. void zprintapoolstr(strnumber s);        
  79.  
  80.         
  81. void pooloverflow(void);        
  82.  
  83.         
  84. void filenmsizeoverflow(void);        
  85.  
  86.  
  87. void zouttoken(alphafile f);        
  88.  
  89.         
  90. void printatoken(void);        
  91.  
  92.         
  93. void printbadinputline(void);        
  94.  
  95.         
  96. void printskippingwhateve(void);        
  97.  
  98.         
  99. void samtoolongfilenamepr(void);        
  100.  
  101.         
  102. void samwrongfilenameprin(void);        
  103.  
  104.         
  105. void printauxname(void);        
  106.  
  107.         
  108. void auxerrprint(void);        
  109.  
  110.  
  111. void zauxerrillegalanother(integer cmdnum);        
  112.  
  113.         
  114. void auxerrnorightbracepr(void);        
  115.  
  116.         
  117. void auxerrstuffafterrigh(void);        
  118.  
  119.         
  120. void auxerrwhitespaceinar(void);        
  121.  
  122.         
  123. void printbibname(void);        
  124.  
  125.         
  126. void printbstname(void);        
  127.  
  128.         
  129. void hashciteconfusion(void);        
  130.  
  131.  
  132. void zcheckciteoverflow(citenumber lastcite);        
  133.  
  134.         
  135. void auxend1errprint(void);        
  136.  
  137.         
  138. void auxend2errprint(void);        
  139.  
  140.         
  141. void bstlnnumprint(void);        
  142.  
  143.         
  144. void bsterrprintandlookfo(void);        
  145.  
  146.         
  147. void bstwarnprint(void);        
  148.  
  149.         
  150. void eatbstprint(void);        
  151.  
  152.         
  153. void unknwnfunctionclassc(void);        
  154.  
  155.  
  156. void zprintfnclass(hashloc fnloc);        
  157.  
  158.  
  159. void ztraceprfnclass(hashloc fnloc);        
  160.  
  161.         
  162. void idscanningconfusion(void);        
  163.  
  164.         
  165. void bstidprint(void);        
  166.  
  167.         
  168. void bstleftbraceprint(void);        
  169.  
  170.         
  171. void bstrightbraceprint(void);        
  172.  
  173.  
  174. void zalreadyseenfunctionp(hashloc seenfnloc);        /* 10 */
  175.  
  176.         
  177. void singlfnoverflow(void);        
  178.  
  179.         
  180. void biblnnumprint(void);        
  181.  
  182.         
  183. void biberrprint(void);        
  184.  
  185.         
  186. void bibwarnprint(void);        
  187.  
  188.  
  189. void zcheckfieldoverflow(integer totalfields);        
  190.  
  191.         
  192. void eatbibprint(void);        
  193.  
  194.  
  195. void zbiboneoftwoprint(ASCIIcode char1,         
  196.     ASCIIcode char2);        /* 10 */
  197.  
  198.         
  199. void bibequalssignprint(void);        
  200.  
  201.         
  202. void bibunbalancedbracesp(void);        
  203.  
  204.         
  205. void bibfieldtoolongprint(void);        
  206.  
  207.         
  208. void macrowarnprint(void);        
  209.  
  210.         
  211. void bibidprint(void);        
  212.  
  213.         
  214. void bibcmdconfusion(void);        
  215.  
  216.         
  217. void citekeydisappearedco(void);        
  218.  
  219.  
  220. void zbadcrossreferencepri(strnumber s);        
  221.  
  222.         
  223. void nonexistentcrossrefe(void);        
  224.  
  225.  
  226. void zprintmissingentry(strnumber s);        
  227.  
  228.         
  229. void bstexwarnprint(void);        
  230.  
  231.         
  232. void bstmildexwarnprint(void);        
  233.  
  234.         
  235. void bstcantmesswithentri(void);        
  236.  
  237.         
  238. void illeglliteralconfusi(void);        
  239.  
  240.         
  241. void unknwnliteralconfusi(void);        
  242.  
  243.  
  244. void zprintstklit(integer stklt,         
  245.     stktype stktp);        
  246.  
  247.  
  248. void zprintlit(integer stklt,         
  249.     stktype stktp);        
  250.  
  251.         
  252. void outputbblline(void);        
  253.  
  254.  
  255. void bst1printstringsizee(void);        
  256.  
  257.  
  258. void bst2printstringsizee(void);        
  259.  
  260.  
  261. void zbracesunbalancedcomp(strnumber poplitvar);        
  262.  
  263.         
  264. void caseconversionconfus(void);        
  265.  
  266.         
  267. void traceandstatprinting(void);        
  268.  
  269. boolean         
  270. zaopenin(palphafile *f);        
  271.  
  272. boolean         
  273. zaopenout(palphafile *f);        
  274.  
  275.  
  276. void zstartname(strnumber filename);        
  277.  
  278.  
  279. void zaddextension(strnumber ext);        
  280.  
  281.  
  282. void zaddarea(strnumber area);        
  283.  
  284. strnumber         
  285. makestring(void);        
  286.  
  287. boolean         
  288. zstreqbuf(strnumber s,         
  289.     buftype buf,         
  290.     bufpointer bfptr,         
  291.     bufpointer len);        /* 10 */
  292.  
  293. boolean         
  294. zstreqstr(strnumber s1,         
  295.     strnumber s2);        /* 10 */
  296.  
  297.  
  298. void zlowercase(buftype buf,         
  299.     bufpointer bfptr,         
  300.     bufpointer len);        
  301.  
  302.  
  303. void zuppercase(buftype buf,         
  304.     bufpointer bfptr,         
  305.     bufpointer len);        
  306.  
  307. hashloc         
  308. zstrlookup(buftype buf,         
  309.     bufpointer j,         
  310.     bufpointer l,         
  311.     strilk ilk,         
  312.     boolean insertit);        /* 40 45 */
  313.  
  314.  
  315. void zpredefine(pdstype pds,         
  316.     pdslen len,         
  317.     strilk ilk);        
  318.  
  319.  
  320. void zinttoASCII(integer inte,         
  321.     buftype intbuf,         
  322.     bufpointer intbegin,         
  323.     bufpointer *intend);        
  324.  
  325.  
  326. void zadddatabasecite(citenumber *newcite);        
  327.  
  328. boolean         
  329. zfindcitelocsforthisc(strnumber citestr);        
  330.  
  331.  
  332. void zswap(citenumber swap1,         
  333.     citenumber swap2);        
  334.  
  335. boolean         
  336. zlessthan(citenumber arg1,         
  337.     citenumber arg2);        /* 10 */
  338.  
  339.  
  340. void zquicksort(citenumber leftend,         
  341.     citenumber rightend);        /* 24 */
  342.  
  343.  
  344. void zbuildin(pdstype pds,         
  345.     pdslen len,         
  346.     hashloc *fnhashloc,         
  347.     bltinrange bltinnum);        
  348.  
  349.         
  350. void predefcertainstrings(void);        
  351.  
  352. boolean         
  353. zscan1(ASCIIcode char1);        
  354.  
  355. boolean         
  356. zscan1white(ASCIIcode char1);        
  357.  
  358. boolean         
  359. zscan2(ASCIIcode char1,         
  360.     ASCIIcode char2);        
  361.  
  362. boolean         
  363. zscan2white(ASCIIcode char1,         
  364.     ASCIIcode char2);        
  365.  
  366. boolean         
  367. zscan3(ASCIIcode char1,         
  368.     ASCIIcode char2,         
  369.     ASCIIcode char3);        
  370.  
  371. boolean         
  372. scanalpha(void);        
  373.  
  374.  
  375. void zscanidentifier(ASCIIcode char1,         
  376.     ASCIIcode char2,         
  377.     ASCIIcode char3);        
  378.  
  379. boolean         
  380. scannonneginteger(void);        
  381.  
  382. boolean         
  383. scaninteger(void);        
  384.  
  385. boolean         
  386. scanwhitespace(void);        
  387.  
  388. boolean         
  389. eatbstwhitespace(void);        
  390.  
  391.         
  392. void skiptokenprint(void);        
  393.  
  394.         
  395. void printrecursionillega(void);        
  396.  
  397.         
  398. void skptokenunknownfunct(void);        
  399.  
  400.         
  401. void skipillegalstuffafte(void);        
  402.  
  403.  
  404. void zscanfndef(hashloc fnhashloc);        /* 25 10 */
  405.  
  406. boolean         
  407. eatbibwhitespace(void);        
  408.  
  409. boolean         
  410. compressbibwhite(void);        
  411.  
  412. boolean         
  413. scanbalancedbraces(void);        
  414.  
  415. boolean         
  416. scanafieldtokenandea(void);        
  417.  
  418. boolean         
  419. scanandstorethefield(void);        
  420.  
  421.  
  422. void zdecrbracelevel(strnumber poplitvar);        
  423.  
  424.  
  425. void zcheckbracelevel(strnumber poplitvar);        
  426.  
  427.  
  428. void znamescanforand(strnumber poplitvar);        
  429.  
  430. boolean         
  431. vontokenfound(void);        
  432.  
  433.         
  434. void vonnameendsandlastna(void);        
  435.  
  436.         
  437. void skipstuffatspbracele(void);        
  438.  
  439.         
  440. void bracelvlonelettersco(void);        
  441.  
  442. boolean         
  443. zenoughtextchars(bufpointer enoughchars);        
  444.  
  445.         
  446. void figureouttheformatte(void);        
  447.  
  448.  
  449. void zpushlitstk(integer pushlt,         
  450.     stktype pushtype);        
  451.  
  452.  
  453. void zpoplitstk(integer *poplit,         
  454.     stktype *poptype);        
  455.  
  456.  
  457. void zprintwrongstklit(integer stklt,         
  458.     stktype stktp1,         
  459.     stktype stktp2);        
  460.  
  461.         
  462. void poptopandprint(void);        
  463.  
  464.         
  465. void popwholestack(void);        
  466.  
  467.         
  468. void initcommandexecution(void);        
  469.  
  470.         
  471. void checkcommandexecutio(void);        
  472.  
  473.         
  474. void addpoolbufandpush(void);        
  475.  
  476.  
  477. void zaddbufpool(strnumber pstr);        
  478.  
  479.  
  480. void zaddoutpool(strnumber pstr);        
  481.  
  482.         
  483. void xequals(void);        
  484.  
  485.         
  486. void xgreaterthan(void);        
  487.  
  488.         
  489. void xlessthan(void);        
  490.  
  491.         
  492. void xplus(void);        
  493.  
  494.         
  495. void xminus(void);        
  496.  
  497.         
  498. void xconcatenate(void);        
  499.  
  500.         
  501. void xgets(void);        
  502.  
  503.         
  504. void xaddperiod(void);        
  505.  
  506.         
  507. void xchangecase(void);        
  508.  
  509.         
  510. void xchrtoint(void);        
  511.  
  512.         
  513. void xcite(void);        
  514.  
  515.         
  516. void xduplicate(void);        
  517.  
  518.         
  519. void xempty(void);        
  520.  
  521.         
  522. void xformatname(void);        
  523.  
  524.         
  525. void xinttochr(void);        
  526.  
  527.         
  528. void xinttostr(void);        
  529.  
  530.         
  531. void xmissing(void);        
  532.  
  533.         
  534. void xnumnames(void);        
  535.  
  536.         
  537. void xpreamble(void);        
  538.  
  539.         
  540. void xpurify(void);        
  541.  
  542.         
  543. void xquote(void);        
  544.  
  545.         
  546. void xsubstring(void);        
  547.  
  548.         
  549. void xswap(void);        
  550.  
  551.         
  552. void xtextlength(void);        
  553.  
  554.         
  555. void xtextprefix(void);        
  556.  
  557.         
  558. void xtype(void);        
  559.  
  560.         
  561. void xwarning(void);        
  562.  
  563.         
  564. void xwidth(void);        
  565.  
  566.         
  567. void xwrite(void);        
  568.  
  569.  
  570. void zexecutefn(hashloc exfnloc);        /* 51 */
  571.  
  572.         
  573. void getthetoplevelauxfil(void);        
  574.  
  575.         
  576. void auxbibdatacommand(void);        
  577.  
  578.         
  579. void auxbibstylecommand(void);        
  580.  
  581.         
  582. void auxcitationcommand(void);        
  583.  
  584.         
  585. void auxinputcommand(void);        
  586.  
  587.         
  588. void poptheauxstack(void);        
  589.  
  590.         
  591. void getauxcommandandproc(void);        
  592.  
  593.         
  594. void lastcheckforauxerror(void);        
  595.  
  596.         
  597. void bstentrycommand(void);        
  598.  
  599. boolean         
  600. badargumenttoken(void);        
  601.  
  602.         
  603. void bstexecutecommand(void);        
  604.  
  605.         
  606. void bstfunctioncommand(void);        
  607.  
  608.         
  609. void bstintegerscommand(void);        
  610.  
  611.         
  612. void bstiteratecommand(void);        
  613.  
  614.         
  615. void bstmacrocommand(void);        
  616.  
  617.         
  618. void getbibcommandorentry(void);        
  619.  
  620.         
  621. void bstreadcommand(void);        
  622.  
  623.         
  624. void bstreversecommand(void);        
  625.  
  626.         
  627. void bstsortcommand(void);        
  628.  
  629.         
  630. void bststringscommand(void);        
  631.  
  632.         
  633. void getbstcommandandproc(void);        
  634.  
  635.         
  636. void initialize(void);        
  637.  
  638.         
  639. void main_body(void);        
  640.  
  641.